package com.bl.student.service.biz.city.impl;

import com.bl.student.dao.repository.CityRepository;
import com.bl.student.service.biz.BaseService;
import com.bl.student.service.biz.city.CityService;
import com.bl.student.service.vo.ListVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by yujingyi on 2018/5/6.
 */
@Service
@Log4j2
public class CityServiceImpl extends BaseService implements CityService {

    @Autowired
    CityRepository cityRepository;

    public ListVo getCityByParentId(int parentid) {
        return handleList(cityRepository.findByParentid(parentid));
    }
}
